package com.attilax.love;

import java.io.File;
import java.io.IOException;
import java.util.List;

import org.apache.commons.io.FileUtils;
import org.apache.commons.lang3.StringUtils;

public class lovepubdayGener {

	public static void main(String[] args) throws IOException {
   String days="C:\\0wkspc\\hislog\\src\\main\\java\\com\\attilax\\love\\fedays.txt";
String tmpfile="C:\\0wkspc\\hislog\\src\\main\\java\\com\\attilax\\love\\baiduechart_everiverTmplt.txt";
String tmp=FileUtils.readFileToString(new File(tmpfile));
List<String> days_li=FileUtils.readLines(new File(days));
int n=0;
for (String dayname : days_li) {
	n++;
	String tmp2=tmp;
	tmp2=tmp2.replaceAll("@evtname@", dayname);
	String mon_mm=StringUtils.leftPad(String.valueOf(n), 2, '0');
	tmp2=tmp2.replaceAll("@mon@", mon_mm);
	System.out.println(tmp2+",");
}
	}

}
